<?php

class livingears_scraper extends BlogScraper
{

    function __construct()
    {
        parent::__construct('livingears');
    }
    
}

class livingears_post_scraper extends PostScraper
{

        
    function getDate()
    {
        $date = $this->xpath->query("//h2[@class='date-header']")->item(0)->nodeValue;
        list($day_name, $date) = explode(',', $date, 2);
        return date('Y-m-d H:i:s', strtotime($date));

    }
    
    function getText()
    {
        $text = $this->xpath->query("//div[@class='post-body entry-content']")->item(0)->nodeValue;
        $text = str_replace("Shining a light on the bands that bring ears to life.", "", $text);
        $text = str_replace("Post a Comment", "", $text);

        return $text;
    }
}

?>